<?php

use Biz\service\search\Goods as searchGoods;
/**
 * @deprecated
 */
class GoodsSearchAction extends ActionPlugin
{

    const USER_LEVEL = self::LEVEL_NOTHING;

    public function main()
    {
        $searchKey = $this->getRequest()->getQuery('search_key', '床');
        $sort = $this->getRequest()->getQuery('sort_type', 0);
        $cityId = $this->getRequest()->getQuery('city_id', 0);
        $page = $this->getRequest()->getQuery('page', 1);

        $result = searchGoods::searchTheparagraphGoodsByDs($searchKey, $sort, $cityId, $this->uid, $page);

        $this->setSuccess($result);

    }
}